/**
 * 基础路由
 * @type { *[] }
 * meta:{
 *      title:'首页' ,  //type:String   页面标题
 *      keepAlive：false, // type:Boolean 页面是否缓存 回退时 不会刷新页面
 *      needLogin:false , // type:Boolean  是否需要登录
 *      forbiddenAnimation:false,//type:Boolean 是否加转场动画
 * }
 */
export const constantRouterMap = [
	{
		path: '/',
		component: () => import('@/views/layouts/index'),
		redirect: '/login',
		meta: {
			title: '登录',
			keepAlive: false,
			needLogin: false
		},
		children: [
			{
				path: '/home',
				name: 'Home',
				component: () => import('@/views/home/index'),
				meta: { title: '首页', keepAlive: false }
			},
			{
				path: '/course',
				name: 'course',
				component: () => import('@/views/home/course'),
				meta: { title: '课程', keepAlive: false }
			},
			{
				path: '/about',
				name: 'About',
				component: () => import('@/views/home/about'),
				meta: { title: '我的', keepAlive: false, needLogin: false }
			},
			{
				path: '/status',
				name: 'status',
				component: () => import('@/views/public/status'),
				meta: { title: '支付结果', keepAlive: false, needLogin: false }
			},
			{
				path: '/hello',
				name: 'hello',
				component: () => import('@/views/hello'),
				meta: { title: '直播页面', keepAlive: false, needLogin: false }
			},
		]
	},
	{
		path: '*',
		name: 'NotFound',
		component: () => import('@/views/public/404'),
		meta: { title: '打开失败-404', keepAlive: true, needLogin: false }
	},
	{
		path: '/richPage',
		name: 'richPage',
		component: () => import('@/views/other/richPage'),
		meta: { title: '详情', keepAlive: false, needLogin: false }
	},
	{
		path: '/courseDetails',
		name: 'courseDetails',
		component: () => import('@/views/other/courseDetails'),
		meta: { title: '课程详情', keepAlive: false, needLogin: false }
	},
	{
		path: '/videoDetails',
		name: 'videoDetails',
		component: () => import('@/views/other/videoDetails'),
		meta: { title: '课程详情', keepAlive: false, needLogin: false }
	},
	{
		path: '/liveVideoDetails',
		name: 'liveVideoDetails',
		component: () => import('@/views/broadcast/index'),
		meta: { title: '网络直播课', keepAlive: false, needLogin: false }
	},
	{
		path: '/tabList',
		name: 'tabList',
		component: () => import('@/views/other/tabList'),
		meta: { title: '', keepAlive: false, needLogin: false }
	},
	{
		path: '/like',
		name: 'like',
		component: () => import('@/views/other/like'),
		meta: { title: '课程详情', keepAlive: false, needLogin: false }
	},
	{
		path: '/collect',
		name: 'collect',
		component: () => import('@/views/other/collect'),
		meta: { title: '', keepAlive: false, needLogin: false }
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('@/views/login/login'),
		meta: { title: '', keepAlive: false, needLogin: false }
	},
	{
		path: '/register',
		name: 'register',
		component: () => import('@/views/login/register'),
		meta: { title: '', keepAlive: false, needLogin: false }
	},
];
